<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{%block title%}base title{%endblock%}</title>
    {%block headStyle%}
    <style>
        body {
            background: red;
        }
    </style>
    {% endblock %}
    {%block headScript%}
    <script>
        console.log('base script')
    </script>
    {% endblock %}
</head>
<body>
{% block content %}
    {%include "public/header.html"%}
    content
    {%include "public/footer.html"%}
{% endblock %}
{%block script%}
<script>
    console.log('base script @ footer')
</script>
{%endblock%}
</body>
</html>